<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
	<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>天朝企业</title>
<link rel="stylesheet"
	href="<%=request.getContextPath()%>/static/common/plugin/bootstrap-3.3.5/css/bootstrap.min.css">
<link rel="shortcut icon" href="<%=request.getContextPath()%>/static/common/img/favicon.ico"/>
<script
	src="<%=request.getContextPath()%>/static/common/plugin/jquery.min.js"></script>
<script
	src="<%=request.getContextPath()%>/static/common/plugin/bootstrap-3.3.5/js/bootstrap.min.js"></script>
<link href="<%=request.getContextPath()%>/static/common/plugin/font-awesome.min.css" rel="stylesheet" type="text/css">
<link href="<%=request.getContextPath()%>/static/common/plugin/bootstrap.min.css" rel="stylesheet" type="text/css">
<link href="<%=request.getContextPath()%>/static/common/plugin/bootstrap-theme.min.css" rel="stylesheet" type="text/css">
<link href="<%=request.getContextPath()%>/static/common/plugin/templatemo_style.css" rel="stylesheet" type="text/css">	

</head>
<body class="templatemo-bg-image-2">
<!-- 登录失败后的页面显示 -->
		<c:if test="${!empty param.loginError }">
			<div class="alert alert-danger alert-dismissible fade in" role="alert" style="text-align: center;">
		       <button type="button" class="close" data-dismiss="alert" aria-label="Close"><span aria-hidden="true">×</span></button>
		       <strong>用户名或密码错误！</strong>
			</div>
		</c:if>
		<c:if test="${!empty param.registerSuccess }">
			<div class="alert alert-success alert-dismissible fade in" role="alert" style="text-align: center;">
		       <button type="button" class="close" data-dismiss="alert" aria-label="Close"><span aria-hidden="true">×</span></button>
		       <strong>企业帐号注册成功，请登录！</strong>
			</div>
		</c:if>
		<c:if test="${!empty param.logoutSuccess }">
			<div class="alert alert-success alert-dismissible fade in" role="alert" style="text-align: center;">
		       <button type="button" class="close" data-dismiss="alert" aria-label="Close"><span aria-hidden="true">×</span></button>
		       <strong>企业帐号注销成功，请登录！</strong>
			</div>
		</c:if>
		<div class="container">
	
<div class="container">
		<div class="col-md-12">			
			<form class="form-horizontal templatemo-login-form-2" role="form" action="<%=request.getContextPath()%>/CompanyServlet?command=login" method="post">
				<div class="row">
					<div class="col-md-12">
						<h1>用户登录</h1>
					</div>
				</div>
				<div class="row">
					<div class="templatemo-one-signin col-md-6">
				        <div class="form-group">
				          <div class="col-md-12">		          	
				            <label for="username" class="control-label">用户名</label>
				            <div class="templatemo-input-icon-container">
				            	
				            	<input type="text" name="code" class="form-control" id="username" value="${cookie.code }" placeholder="">
				            </div>		            		            		            
				          </div>              
				        </div>
				        <div class="form-group">
				          <div class="col-md-12">
				            <label for="password" class="control-label">密码</label>
				            <div class="templatemo-input-icon-container">
				            	
				            	<input type="password" name="password" class="form-control" id="password" value="${cookie.password }" placeholder="">
				            </div>
				          </div>
				        </div>
				        <div class="form-group">
				          <div class="col-md-12">
				            <div class="checkbox">
				                <label>
				                  <input type="checkbox" id="remember" name="remember" value="true" <c:if test="${cookie.remember == 'true'}"> checked="checked" </c:if>>记住用户名
				                </label>
				            </div>
				          </div>
				        </div>
				        <div class="form-group">
				          <div class="col-md-12">
				            <input type="submit" value="登录" class="btn btn-warning">
				          </div>
				        </div>
				        <div class="form-group">
				          	<div class="col-md-12">
				        		<a href="company-register.jsp" class="text-center">注册新账号</a>|
							<a href="forgetPassword.jsp" class="text-center">忘记密码？</a>
				       	 	</div>
				    	</div>
					</div>
					<div class="templatemo-other-signin col-md-6">
						<label class="margin-bottom-15">
							One-click sign in using other services. Credit goes to <a rel="nofollow" href="http://lipis.github.io/bootstrap-social/">Bootstrap Social</a> for social sign in buttons.
						</label>
						<a class="btn btn-block btn-social btn-facebook margin-bottom-15">
						    <i class="fa fa-facebook"></i> 第三方登录QQ
						</a>
						<a class="btn btn-block btn-social btn-twitter margin-bottom-15">
						    <i class="fa fa-twitter"></i> 第三方登录新浪微博
						</a>
						<a class="btn btn-block btn-social btn-google-plus">
						    <i class="fa fa-google-plus"></i> 第三方登录微信
						</a>
					</div>   
				</div>				 	
		      </form>		      		      
		</div>
	</div>
</body>
</html>